package com.bdqn.service.impl;

import com.bdqn.mapper.SupplierMapper;
import com.bdqn.pojo.Supplier;
import com.bdqn.service.SupplierService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("supplierService")
public class SupplierServiceImpl implements SupplierService {
    @Resource
    private SupplierMapper supplierMapper;

    @Override
    public List<Supplier> getSupplier(String supCode, String supName, Integer pageIndex, int pageSize) {
        return supplierMapper.getSupplier(supCode,supName,pageIndex,pageSize);
    }

    @Override
    public int getSupplierCount(String supCode, String supName) {
        return supplierMapper.getSupplierCount(supCode,supName);
    }
}
